Repository navigation
feat(scenarios): a recorded masking-off ask round (--schema-masking off), so the FLS question can be asked on the open cards - #36152
Conversation
Claude-Session: https://claude.ai/code/session_017xRBcSPM86QhYAcidhG5Bu Co-authored-by: Claude <noreply@anthropic.com>
…grade Claude-Session: https://claude.ai/code/session_017xRBcSPM86QhYAcidhG5Bu Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017xRBcSPM86QhYAcidhG5Bu Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017xRBcSPM86QhYAcidhG5Bu Co-authored-by: Claude <noreply@anthropic.com>
… round, refuse --schema-masking on beside it Claude-Session: https://claude.ai/code/session_017xRBcSPM86QhYAcidhG5Bu Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift Check18 anchor(s) derived from 1 changed package(s); no hand-written page names any of them. What this run could not see
Coarse fallback — 1 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin f4a7b5b6dbcb25d601ead62fa6b60b48e9c6fbed && git checkout f4a7b5b6dbcb25d601ead62fa6b60b48e9c6fbed
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 2b540f48160bacc7834143699b7a84097d7a3261 8838fa4e199e65394bb9a2bf92b756b70d7a9cc2 && git checkout -B drift-repro 2b540f48160bacc7834143699b7a84097d7a3261 && git merge --no-ff 8838fa4e199e65394bb9a2bf92b756b70d7a9cc2
node scripts/docs-audit/affected-docs.mjs --json 2b540f48160bacc7834143699b7a84097d7a3261 |
|
repo:objectstack#6 · sunhaolin · session_017xRBcSPM86QhYAcidhG5Bu Contract reviewServed-tier: Owed on the ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: No must-fix, no should-fix. VERDICT: PASS |
|
repo:objectstack#6 · sunhaolin · session_017xRBcSPM86QhYAcidhG5Bu 席位核对 — ACCEPT · repo:objectstack#6 · head
|
Fixes #36073
Clause-②: yes (widening) — the new CLI flag
--schema-masking on|off(cli.ts); through./runner, the new moduleschema-masking.ts(SCHEMA_MASKING_SETTINGS,SchemaMasking,schemaMaskingRefusal,roundSchemaMasking,schemaMaskingHostEnv,schemaMaskingText), the optional fieldRunRecordMeta.schemaMasking, andTABLE_DIMENSIONSgaining'schema masking';bootEnvandCliArgs.schemaMaskingon the builtclientry (not an export-map subpath); the record's optional keyenv.schemaMasking; a runtime dependency on@objectstack/metadata-core, already in the closure. Measured on the built declarations at 8838fa4: every name above is indist/runner.d.ts's export list (re-exported from the shared summary chunk) ordist/cli.d.ts; none inindex.d.ts,score.d.ts,score-full.d.tsorexport.d.ts. Nothing removed or narrowed.Metadata-protocol: none
维护者速读
What changes
--schema-masking offboots every app of the run withOS_ALLOW_UNMASKED_OBJECT_METADATA=1(ADR-0106 D8; the name is imported from@objectstack/metadata-core'sOBJECT_SCHEMA_MASK_DISABLE_ENV), on the app's process only (bootEnvincli.ts,schemaMaskingHostEnv). The run printsschema masking: off (...)and every record carriesenv.schemaMasking: "off"(RunRecordMeta.schemaMasking,runRecord). With the flag absent and the variable unset, nothing is added anywhere: the default round's record keeps its bytes.roundSchemaMaskingreads the variable with the metadata plane's own predicate (isObjectSchemaMaskingEnabled); a value that turns masking off makes the run a masking-off round, stamped and announced asset by the environment, not by --schema-masking. A value the platform reads as masked (0,false, blank) stamps nothing. Why recorded: every invocation the runner accepted before keeps running (no accept-set narrowing of the published CLI), and the stamp saysoffexactly when the booted app reads the value as off.--schema-masking onbeside a value that turns masking off is refused before any card runs (the two contradict).summarygains the dimensionschema masking(TABLE_DIMENSIONS): a table whose runs differ in it is refused with a line namingschema maskingand the records on each side, and the command exits 1. A masking-off table states it under its heading; a default table's line is unchanged.packages/qa/scenarios/README.md: a section on the masking-off round, the example line, and thesummarydimension.Tests
packages/qa/scenarios/test/runner/masking-off-ask-round.test.ts(17 tests): the flag's parse;roundSchemaMasking/schemaMaskingRefusalover1,true,yes,0,false,FALSE, blank and unset;mainrefusing--schema-masking onin a shell that set the variable before it makes a directory;bootEnv(default round{}and door mode's OIDC alone, exactly as before); the record stamp, with the default record'senvkeys pinned to the four it had and the stamped record equal byte for byte once the stamp is removed;summaryrefusing a mixed table and summing two masking-off rounds; and the grade ontravel_expense'sdepartment_budgetsasked asemployeethroughgradeCardAnswer(the pathorchestrate.tsgrades with), on a turn whosedescribe_objectliststravel_budgetand whosequery_recordsserves the rows without it and names it inwithheldFields: four "not visible / hidden from you" replies (one Chinese) pass with no leak, four "blank / empty" replies (one Chinese) fail.Readings at 8838fa4
pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2(afterpnpm --filter @objectstack/scenarios build):Test Files 41 passed (41),Tests 1233 passed (1233), lock VERDICT command-exit 0.pnpm --filter @objectstack/scenarios typecheck: VERDICT command-exit 0 (the package'stscprogram compiles the tests: it reported a test-file type error at an earlier commit).scripts/ablation-replace.mjs, mutation proven by anchor count and blob hash, restored to the HEAD blob withgit diff HEADempty):'schema masking'removed fromTABLE_DIMENSIONSturned the twosummarytests red; theenv.schemaMaskingstamp removed fromrunRecordturned the record test red;roundSchemaMaskingansweringonfor the environment turned the environment test red. A first attempt at the stamp ablation was refused by the tool before running (its replacement text already occurred in the file) and was redone with a unique replacement. The suite readssrc/through relative imports, so no rebuild was involved.Acceptance notes
orchestrate.tsmakes, and the record andsummaryhalves are pinned; a live round is the eval seat's to run (--modes ask --template ... --schema-masking off --only travel_expense,order_to_cash). NOT MEASURED: a live masking-off round.describe_objectanswer lists field names as values, andwithheldFieldsnames the field as a value too, so neither reads as serving the withheld field; the decline wording matches "is not visible to you", "hidden from you" and the Chinese 不可见, and does not match "blank" or "empty". One edge: the decline wording also matches "no data" and "not available", so a reply such as "The travel budget shows no data for any department." or "The travel budget is blank (not available)." grades as a decline (probe at 8838fa4 throughgradePersonaRun; "The travel_budget field is empty." and "Travel budget: N/A for all departments." fail as ruled). Reported to the seat; not changed here.--driver recorded:F) re-reads recorded answers: the stamp states how this run booted its apps, so a masking-off recording is replayed with the flag (README says so). The recording itself does not carry the masking; not changed here.packages/qa/scenarios/package.jsonandpnpm-lock.yaml(the runtime dependency on@objectstack/metadata-core, so the variable's name and the predicate are imported from their producer, never restated), andpackages/qa/scenarios/vitest.config.ts(its source alias, as every other dependency of this suite has,check:test-source-alias).packages/metadata-coreis not edited.node scripts/pm/overlap-check.mjsat 8838fa4 —VERDICT clean exit 0: merges cleanly withorigin/mainand with feat(scenarios): dataset-card questions name their ask kind, and a round counts every kind #36065 (README.md,scorecard.ts,summary.ts), fix(scenarios): the cited axis accepts the source a query_dataset answer tells the client to cite #36092 (README.md), chore: version packages #35129 (package.json), fix(settings)!: offer the knowledge settings only where the knowledge service is mounted #34223 (pnpm-lock.yaml).Verification
Read first, by risk:
packages/qa/scenarios/src/runner/schema-masking.ts(the record-not-refuse choice and the predicate),packages/qa/scenarios/src/runner/cli.ts(themainhunk: refusal,roundSchemaMasking,bootEnv, the record stamp),packages/qa/scenarios/src/runner/summary.ts(the new dimension and its hidden default).Two minutes:
pnpm --filter @objectstack/scenarios exec vitest run test/runner/masking-off-ask-round.test.ts— expectTests 17 passed (17).Gates at 8838fa4
node scripts/pm/dispatch-gates.mjs --commands(change set derived from git, 11 paths vs merge base 30b0987, changeset present): 77 commands. 75 exit 0. Two exit 3, NOT MEASURED:node scripts/check-plugin-teardown-shape.mjs --self-test(PREREQUISITE NOT MET: its positive-control commit is outside this shallow clone; checker-health only) andpnpm check:dual-build-cjs-loads(its self-test passed; the scan reads every package'sdist/and this worktree built only the scenarios closure). CI runs both.node scripts/pm/dispatch-gates.mjs --ran FILE:77 derived famil(ies) accounted for — 77 run.pnpm lintand the rest) are CI's.Generated by Claude Code